package com.example.fuckyou;

import android.content.Context;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

public class kebiaoManager {
    private MyDatabaseHelper db;
    public kebiaoManager(Context context)
    {
        db=new MyDatabaseHelper(context);
    }
    public void insertweek(int weeknum,String date)
    {
        db.insertweek(weeknum,date);
    }
    public int getweeknum(String date)
    {
        return db.getweeknum(date);
    }
    public Date getweekdate(int i) throws ParseException
    {
        return db.getweekdate(i);
    }
    public void insertLesson(Lesson lesson)
    {
        db.insertLesson(lesson);
    }
    public void deleteLesson()
    {
        db.deleteLesson();
    }
    public List<Lesson> alllesson() throws ParseException
    {
        return db.alllesson();
    }
    public List<Lesson> lessoninweek(Date date) throws ParseException
    {
        return db.lessoninweek(date);
    }
}
